﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ControleurWorkflow
{
    class CTRL_WF_NV_PERSONNE_V1 : I_CTRL_WF
    {
        private FactoryMessage.STGMSG oMsg;
        private ComposantMappage.MAPP_TB_PERSONNE personne;
        private CoucheAccesDonnees.CAD cad;


        public FactoryMessage.STGMSG exec(FactoryMessage.STGMSG oMsg)
        {
            this.cad = new CoucheAccesDonnees.CAD();

            this.personne = new ComposantMappage.MAPP_TB_PERSONNE();

            oMsg = this.personne.insert_nvPersonne(oMsg);
            oMsg = this.cad.Action_Rows(oMsg);

            this.oMsg = FactoryMessage.MSG_FACTORY.msg_factory("", null, "", "", "", true, "");

            return this.oMsg;
        }
    }
}
